package com.hotel.mapper;

import com.hotel.entity.UserRoom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserRoomMapper {
    /**
     * 获取房间列表
     */
    @Select("select id, room_type, room_price, image, description, max_occupancy from room_type where status=1")
    List<UserRoom> list();

}
